<h1 class="title">Partenaires de CPF Aizenay</h1>
<div class="box_relief yellow">
    Cliquez sur le logo d'un partenaire pour voir sa fiche détaillée
</div>
<ul>
    <?php
//                $i = 1;
    foreach($partnersList as $partner) {
    ?>
    <?php $imagesAttributes = Utils::getImageSize($partner['sfAsset'][ 'Folder' ][ 'relative_path' ], $partner['sfAsset'], null, 100); ?>
    <?php
    $url = "#";
    $width = '0';
    $height = '0';
    $marginTop = '0';
    $marginLeft = '0';

    if(!is_null($imagesAttributes['small']['url'])){
        $url = $imagesAttributes['small']['url'];
        $width = $imagesAttributes['small']['width'];
        $height = $imagesAttributes['small']['height'];
        $marginTop = $imagesAttributes['small']['marginTop'];
        $marginLeft = $imagesAttributes['small']['marginLeft'];
    }
    ?>

    <li style="margin-top: <?php echo $marginTop ?>px ">
        <a href="<?php echo url_for('@partner_show_detail?name_slug=' . $partner['slug']) ?>">
            <?php echo image_tag($url, array('title' => $partner['title'], 'alt' => $partner['title'], 'width' => $width, 'height' => $height)) ?>
        </a>
    </li>
    <?php
//                if($i%2 == 0){
//                    echo "<li class='push_float_left'>&nbsp;</li>";
//                }
//                $i++;
    } ?>
</ul>
<div class="push_float_left"></div>